package com.bw.gmall.realtime.dim.app;

import com.bw.gmall.realtime.common.bean.TableProcessDim;
import com.bw.gmall.realtime.common.util.JdbcUtil;

import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;

public class TestDim {
    public static void main(String[] args) throws Exception {
        HashMap<String, TableProcessDim> hashMap = new HashMap<>();
        java.sql.Connection mysqlConnection = JdbcUtil.getMysqlConnection();
        List<TableProcessDim> tableProcessDims = JdbcUtil.queryList(mysqlConnection, "select * from gmall2023_config.table_process_dim", TableProcessDim.class);
        for (TableProcessDim tableProcessDim : tableProcessDims) {
            hashMap.put(tableProcessDim.getSourceTable(), tableProcessDim);
            System.out.println("11111");
        }
        JdbcUtil.closeConnection(mysqlConnection);
    }
}
